package com.lpc.fragmenttest;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * @ Author     ：v_lipengcheng
 * @ Date       ：Created in 23:25 2019/1/19
 * @ Description：
 */
public class FirstFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        return inflater.inflate(R.layout.frag_first, null);
    }

    @Override
    public void onResume() {
        super.onResume();
        Log.e("lipc0113", "onResume");
    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);

        Log.e("lipc0113", "onHiddenChanged----" + (hidden ? 0 : 1));
    }
}
